package com.bosssoft.cloud.wechat.infrastructure.exception;

import com.bosssoft.cloud.wechat.infrastructure.enums.ErrEnum;
import lombok.Getter;

/**
 * 业务错误
 *
 * @author wcy create on 2021/7/21 17:57 下午
 */
@Getter
public class BusinessException extends BaseException {

    private Object data;

    public BusinessException() {
        super(ErrEnum.B0001);
    }

    public BusinessException(ErrEnum errEnum) {
        super(errEnum);
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(ErrEnum errEnum, String message) {
        super(errEnum, message);
    }

    public BusinessException(ErrEnum errEnum, String message, Object data) {
        super(errEnum, message);
        this.data = data;
    }

}
